<template>
  <v-container>
    <h3>Overview</h3>
    <D3Canvas
      :w="w"
      :h="h"
    />
  </v-container>
</template>
<script>
import D3Canvas from './D3Canvas'
export default {
  name: 'bpb_overview',
  data () {
    return {
      w: 0,
      h: 0
    }
  },
  components: {
    D3Canvas
  },
  methods: {
    updateSize (w, h) {
      this.w = screen.width
      this.h = screen.height
    }
  },
  beforeMount () {
    this.updateSize()
    window.addEventListener('resize', this.updateSize)
  }
}
</script>
<style scoped>
</style>
